package com.zerogis.zpubuidzmb;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;

import com.zerogis.zpubuibas.fragment.base.BaseFragment;
import com.zerogis.zpubuibas.viewmanager.FragmentStack;
import com.zerogis.zpubuidzmb.fragment.QueryFragmentSimpleDzmb;

public class MainActivity extends AppCompatActivity
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        FragmentStack.getInstance().showFragment(R.id.container_main, getFragmentManager(), QueryFragmentSimpleDzmb.getInstance(), null);
    }

    public void onClick(View view)
    {
        BaseFragment baseFragment = ((BaseFragment) FragmentStack.getInstance().getCurrentFragment());
        baseFragment.onClick(view);
        Log.e("zcj","baseFragment=="+baseFragment);
    }
}
